package com.zlp.mall.portal.modules.pms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zlp.mall.portal.modules.pms.dto.resp.HomeResp;
import com.zlp.mall.portal.modules.pms.mapper.ProductCategoryMapper;
import com.zlp.mall.portal.modules.pms.model.ProductCategory;
import com.zlp.mall.portal.modules.pms.service.ProductCategoryService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 产品分类 服务实现类
 * </p>
 *
 * @author ZouLiPing
 * @since 2021-10-13
 */
@Service
@RequiredArgsConstructor
@Slf4j(topic = "ProductCategoryServiceImpl")
public class ProductCategoryServiceImpl extends ServiceImpl<ProductCategoryMapper, ProductCategory> implements ProductCategoryService {

    private final ProductCategoryMapper productCategoryMapper;

    @Override
    public List<HomeResp> getMenus() {

        log.info("getMenus");
       List<HomeResp> homeRespList = productCategoryMapper.selectProductCategory();
        return homeRespList;
    }
}
